package 算法语言基础.Day11_9;

/**
 * @projectName: JAVA编程
 * @package: 算法语言基础.Day11_9
 * @className: test1_3
 * @author: IT_Jay
 * @description: TODO
 * @date: 2021/11/10 10:44
 */
public class test1_3 {
    public static void main(String[] args) {
        for (int i=0; i<5; i++){
            System.out.print(" ");
        }
        System.out.println("*");
        for (int i=0; i<4; i++){
            for (int j=4; j>i; j--){
                System.out.print(" ");
            }
            System.out.print("*");
            for (int j=0; j<=i; j++){
                System.out.print(" ");
            }
            for (int j=1; j<=i; j++){
                System.out.print(" ");
            }
            System.out.println("*");
        }
        for (int i=4; i>=0; i--){
            for (int j=4; j>i; j--){
                System.out.print(" ");
            }
            System.out.print("*");
            for (int j=0; j<=i; j++){
                System.out.print(" ");
            }
            for (int j=1; j<=i; j++){
                System.out.print(" ");
            }
            System.out.println("*");
        }
        for (int i=0; i<5; i++){
            System.out.print(" ");
        }
        System.out.println("*");
    }
}
